package com.miukoo.aikao.qpaper.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.miukoo.aikao.core.pojos.BaseModel;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
* <p>
* 试卷实体类
* </p>
*
* @author 聪明笨狗
* @since 2020-05-25 17:31
*/
@Setter
@Getter
@TableName("pa_paper")
public class Paper extends BaseModel<Paper> {

    private static final long serialVersionUID = 1L;

    /**
     * 试卷ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 用户
     */
    @TableField("username")
    private String username;

    /**
     * 部门ID
     */
    @TableField("depart_id")
    private Long departId;

    /**
     * 规则ID
     */
    @TableField("exam_id")
    private Long examId;

    /**
     * 考试标题
     */
    private String title;

    /**
     * 考试时长
     */
    @TableField("total_time")
    private Short totalTime;

    /**
     * 用户时长
     */
    @TableField("user_time")
    private Short userTime;

    /**
     * 试卷总分
     */
    @TableField("total_score")
    private Short totalScore;

    /**
     * 及格分
     */
    @TableField("qualify_score")
    private Short qualifyScore;

    /**
     * 客观分
     */
    @TableField("radio_score")
    private Short radioScore;

    /**
     * 主观分
     */
    @TableField("qa_score")
    private Short qaScore;

    /**
     * 用户得分
     */
    @TableField("user_score")
    private Short userScore;

    /**
     * 是否包含简答题
     */
    @TableField("has_saq")
    private Boolean hasSaq;

    /**
     * 试卷状态
     */
    private Short state;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;

    /**
     * 截止时间
     */
    @TableField("limit_time")
    private Date limitTime;

    @Override
    public Serializable pkVal() {
        return id;
    }
}
